package com.vue.bean;

import java.io.Serializable;

/**
 * <p>
 * 通用返回结果
 * </p>
 *
 * @author szl
 * @since 2021-05-27
 */
public class PageBean<T> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 当前页
     */
    private int current;

    /**
     * 每页大小
     */
    private int size;

    /**
     * 总数据量
     */
    private int total;

    /**
     * 返回结果数据
     */
    private T data;

    public int getCurrent() {
        return current;
    }

    public void setCurrent(int current) {
        this.current = current;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
